import request from '@/utils/request'

// 查询innovation列表
export function listInnovation(query) {
    return request({
        url: '/business/innovation/list',
        method: 'get',
        params: query
    })
}

// 查询innovation详细
export function getInnovation(id) {
    return request({
        url: '/business/innovation/' + id,
        method: 'get'
    })
}

// 新增innovation
export function addInnovation(data) {
    return request({
        url: '/business/innovation',
        method: 'post',
        data: data
    })
}

// 修改innovation
export function updateInnovation(data) {
    return request({
        url: '/business/innovation',
        method: 'put',
        data: data
    })
}

// 删除innovation
export function delInnovation(id) {
    return request({
        url: '/business/innovation/' + id,
        method: 'delete'
    })
}
// 获取部门
export function getDeptList() {
    return request({
        url: '/system/dept/listDept',
        method: 'get'
    })
}
